package myProject.gwt.client;

import myProject.gwt.client.simpleTable.IDataSource;

public class VirtualDataSource implements IDataSource {

	private int recordCount;
	
	public VirtualDataSource(int recordCount){
		this.recordCount = recordCount;
	}
	
	
	@Override
	public String getCellValue(int col, int row) {
		if(row == recordCount-1)return "<div style=\"background-color: orange; font-weight:bold; color: white;\">Summary</div>";
		else return "("+col +"/"+ row+")";
		//return "aaaaaaaaaaa bbbbbbbbbbbb cccccccccccfffffffffffffffffffffff";
	}

	@Override
	public int getRecordCound() {
		return recordCount;
	}

}
